<!DOCTYPE HTML>
<html>
<head>
    <title>找回密码</title>
    <link href="__STATIC__/css/style.css" rel="stylesheet" type="text/css" media="all" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script type="text/javascript" src="__STATIC__/js/xadmin.js"></script>
    <script type="text/javascript" src="__STATIC__/lib/layui/layui.js" charset="utf-8"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <!-- -->
    <script>var __links = document.querySelectorAll('a');function __linkClick(e) { parent.window.postMessage(this.href, '*');} ;for (var i = 0, l = __links.length; i < l; i++) {if ( __links[i].getAttribute('data-t') == '_blank' ) { __links[i].addEventListener('click', __linkClick, false);}}</script>
    <script src="__STATIC__/js/jquery.min.js"></script>
    <script>$(document).ready(function(c) {
        $('.alert-close').on('click', function(c){
            $('.message').fadeOut('slow', function(c){
                $('.message').remove();

            });
        });
    });
    </script>
</head>
<body>
<!-- contact-form -->
<div class="tubiao warning">
    <a href="{:url('index/admin/wang')}" class="icon lock"></a>
</div>
<div class="message warning">
    <div class="inset">
        <div class="login-head">
            <h1>找回密码</h1>
            <div class="alert-close"> </div>
        </div>
        <form class="layui-form">
            <li>
                <input type="text" class="text layui-input" placeholder="请输入正确的用户名"  name="m_name" required="" lay-verify="nikename" id="L_username">
            </li>
            <li>
            <input type="text" placeholder="请输入正确的邮箱名" id="L_email" name="email" required="" lay-verify="email" autocomplete="off" class="layui-input">
            </li>
            <div class="clear"> </div>

            <div class="clear"> </div>
            <div class="submit">
                <input type="submit" onclick="myFunction()" value="找回密码" name="sub" lay-filter="add"  lay-submit="">
                <h4><a href="{:url('index/index/login')}">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;返回登录页面</a></h4><br/><br/>
                <div class="clear">  </div>
            </div>

        </form>
    </div>
</div>
</div>
<div class="clear"> </div>
<!--- footer --->
<script>
    layui.use(['form','layer'], function(){
        $ = layui.jquery;
        var form = layui.form
            ,layer = layui.layer;

        //自定义验证规则
        form.verify({
            nikename: function(value){
                if(value.length < 3){
                    return '用户名必须为3位！';
                }
            }
            ,pass: [/(.+){4,12}$/, '密码必须4到12位！']
            ,repass: function(value){
                if($('#L_pass').val()!=$('#L_repass').val()){
                    return '两次密码不一致';
                }
            }
        });
    });
</script>
</body>
</html>